3.122 \(\int \frac{a+a \cos (e+f x)}{(c+d x)^2} \, dx\)

Optimal. Leaf size=89 \[ -\frac{a f \text{CosIntegral}\left (\frac{c f}{d}+f x\right ) \sin \left (e-\frac{c f}{d}\right )}{d^2}-\frac{a f \cos \left (e-\frac{c f}{d}\right ) \text{Si}\left (x f+\frac{c f}{d}\right )}{d^2}-\frac{a \cos (e+f x)}{d (c+d x)}-\frac{a}{d (c+d x)} \]

[Out]

-(a/(d*(c + d*x))) - (a*Cos[e + f*x])/(d*(c + d*x)) - (a*f*CosIntegral[(c*f)/d + f*x]*Sin[e - (c*f)/d])/d^2 -
(a*f*Cos[e - (c*f)/d]*SinIntegral[(c*f)/d + f*x])/d^2

________________________________________________________________________________________

Rubi [A]  time = 0.163309, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.278, Rules used = {3317, 3297, 3303, 3299, 3302} \[ -\frac{a f \text{CosIntegral}\left (\frac{c f}{d}+f x\right ) \sin \left (e-\frac{c f}{d}\right )}{d^2}-\frac{a f \cos \left (e-\frac{c f}{d}\right ) \text{Si}\left (x f+\frac{c f}{d}\right )}{d^2}-\frac{a \cos (e+f x)}{d (c+d x)}-\frac{a}{d (c+d x)} \]

Antiderivative was successfully verified.

[In]

Int[(a + a*Cos[e + f*x])/(c + d*x)^2,x]

[Out]

-(a/(d*(c + d*x))) - (a*Cos[e + f*x])/(d*(c + d*x)) - (a*f*CosIntegral[(c*f)/d + f*x]*Sin[e - (c*f)/d])/d^2 -
(a*f*Cos[e - (c*f)/d]*SinIntegral[(c*f)/d + f*x])/d^2

Rule 3317

Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Int[ExpandIntegrand[
(c + d*x)^m, (a + b*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[n, 0] && (EqQ[n, 1] ||
IGtQ[m, 0] || NeQ[a^2 - b^2, 0])

Rule 3297

Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[((c + d*x)^(m + 1)*Sin[e + f*x])/(d*(
m + 1)), x] - Dist[f/(d*(m + 1)), Int[(c + d*x)^(m + 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && LtQ[
m, -1]

Rule 3303

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[(c*f)/d + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[(c*f)/d + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rule 3299

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinIntegral[e + f*x]/d, x] /; FreeQ[{c, d,
 e, f}, x] && EqQ[d*e - c*f, 0]

Rule 3302

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CosIntegral[e - Pi/2 + f*x]/d, x] /; FreeQ
[{c, d, e, f}, x] && EqQ[d*(e - Pi/2) - c*f, 0]

Rubi steps

\begin{align*} \int \frac{a+a \cos (e+f x)}{(c+d x)^2} \, dx &=\int \left (\frac{a}{(c+d x)^2}+\frac{a \cos (e+f x)}{(c+d x)^2}\right ) \, dx\\ &=-\frac{a}{d (c+d x)}+a \int \frac{\cos (e+f x)}{(c+d x)^2} \, dx\\ &=-\frac{a}{d (c+d x)}-\frac{a \cos (e+f x)}{d (c+d x)}-\frac{(a f) \int \frac{\sin (e+f x)}{c+d x} \, dx}{d}\\ &=-\frac{a}{d (c+d x)}-\frac{a \cos (e+f x)}{d (c+d x)}-\frac{\left (a f \cos \left (e-\frac{c f}{d}\right )\right ) \int \frac{\sin \left (\frac{c f}{d}+f x\right )}{c+d x} \, dx}{d}-\frac{\left (a f \sin \left (e-\frac{c f}{d}\right )\right ) \int \frac{\cos \left (\frac{c f}{d}+f x\right )}{c+d x} \, dx}{d}\\ &=-\frac{a}{d (c+d x)}-\frac{a \cos (e+f x)}{d (c+d x)}-\frac{a f \text{Ci}\left (\frac{c f}{d}+f x\right ) \sin \left (e-\frac{c f}{d}\right )}{d^2}-\frac{a f \cos \left (e-\frac{c f}{d}\right ) \text{Si}\left (\frac{c f}{d}+f x\right )}{d^2}\\ \end{align*}

Mathematica [A]  time = 0.319994, size = 78, normalized size = 0.88 \[ -\frac{a \left (f (c+d x) \text{CosIntegral}\left (f \left (\frac{c}{d}+x\right )\right ) \sin \left (e-\frac{c f}{d}\right )+f (c+d x) \cos \left (e-\frac{c f}{d}\right ) \text{Si}\left (f \left (\frac{c}{d}+x\right )\right )+d (\cos (e+f x)+1)\right )}{d^2 (c+d x)} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + a*Cos[e + f*x])/(c + d*x)^2,x]

[Out]

-((a*(d*(1 + Cos[e + f*x]) + f*(c + d*x)*CosIntegral[f*(c/d + x)]*Sin[e - (c*f)/d] + f*(c + d*x)*Cos[e - (c*f)
/d]*SinIntegral[f*(c/d + x)]))/(d^2*(c + d*x)))

________________________________________________________________________________________

Maple [A]  time = 0.036, size = 143, normalized size = 1.6 \begin{align*}{\frac{1}{f} \left ( a{f}^{2} \left ( -{\frac{\cos \left ( fx+e \right ) }{ \left ( \left ( fx+e \right ) d+cf-de \right ) d}}-{\frac{1}{d} \left ({\frac{1}{d}{\it Si} \left ( fx+e+{\frac{cf-de}{d}} \right ) \cos \left ({\frac{cf-de}{d}} \right ) }-{\frac{1}{d}{\it Ci} \left ( fx+e+{\frac{cf-de}{d}} \right ) \sin \left ({\frac{cf-de}{d}} \right ) } \right ) } \right ) -{\frac{a{f}^{2}}{ \left ( \left ( fx+e \right ) d+cf-de \right ) d}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*cos(f*x+e))/(d*x+c)^2,x)

[Out]

1/f*(a*f^2*(-cos(f*x+e)/((f*x+e)*d+c*f-d*e)/d-(Si(f*x+e+(c*f-d*e)/d)*cos((c*f-d*e)/d)/d-Ci(f*x+e+(c*f-d*e)/d)*
sin((c*f-d*e)/d)/d)/d)-a*f^2/((f*x+e)*d+c*f-d*e)/d)

________________________________________________________________________________________

Maxima [C]  time = 1.5252, size = 265, normalized size = 2.98 \begin{align*} -\frac{\frac{16 \, a f^{2}}{{\left (f x + e\right )} d^{2} - d^{2} e + c d f} + \frac{{\left (8 \, f^{2}{\left (E_{2}\left (\frac{i \,{\left (f x + e\right )} d - i \, d e + i \, c f}{d}\right ) + E_{2}\left (-\frac{i \,{\left (f x + e\right )} d - i \, d e + i \, c f}{d}\right )\right )} \cos \left (-\frac{d e - c f}{d}\right ) + f^{2}{\left (8 i \, E_{2}\left (\frac{i \,{\left (f x + e\right )} d - i \, d e + i \, c f}{d}\right ) - 8 i \, E_{2}\left (-\frac{i \,{\left (f x + e\right )} d - i \, d e + i \, c f}{d}\right )\right )} \sin \left (-\frac{d e - c f}{d}\right )\right )} a}{{\left (f x + e\right )} d^{2} - d^{2} e + c d f}}{16 \, f} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(f*x+e))/(d*x+c)^2,x, algorithm="maxima")

[Out]

-1/16*(16*a*f^2/((f*x + e)*d^2 - d^2*e + c*d*f) + (8*f^2*(exp_integral_e(2, (I*(f*x + e)*d - I*d*e + I*c*f)/d)
 + exp_integral_e(2, -(I*(f*x + e)*d - I*d*e + I*c*f)/d))*cos(-(d*e - c*f)/d) + f^2*(8*I*exp_integral_e(2, (I*
(f*x + e)*d - I*d*e + I*c*f)/d) - 8*I*exp_integral_e(2, -(I*(f*x + e)*d - I*d*e + I*c*f)/d))*sin(-(d*e - c*f)/
d))*a/((f*x + e)*d^2 - d^2*e + c*d*f))/f

________________________________________________________________________________________

Fricas [A]  time = 1.70656, size = 332, normalized size = 3.73 \begin{align*} -\frac{2 \, a d \cos \left (f x + e\right ) + 2 \,{\left (a d f x + a c f\right )} \cos \left (-\frac{d e - c f}{d}\right ) \operatorname{Si}\left (\frac{d f x + c f}{d}\right ) + 2 \, a d -{\left ({\left (a d f x + a c f\right )} \operatorname{Ci}\left (\frac{d f x + c f}{d}\right ) +{\left (a d f x + a c f\right )} \operatorname{Ci}\left (-\frac{d f x + c f}{d}\right )\right )} \sin \left (-\frac{d e - c f}{d}\right )}{2 \,{\left (d^{3} x + c d^{2}\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(f*x+e))/(d*x+c)^2,x, algorithm="fricas")

[Out]

-1/2*(2*a*d*cos(f*x + e) + 2*(a*d*f*x + a*c*f)*cos(-(d*e - c*f)/d)*sin_integral((d*f*x + c*f)/d) + 2*a*d - ((a
*d*f*x + a*c*f)*cos_integral((d*f*x + c*f)/d) + (a*d*f*x + a*c*f)*cos_integral(-(d*f*x + c*f)/d))*sin(-(d*e -
c*f)/d))/(d^3*x + c*d^2)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} a \left (\int \frac{\cos{\left (e + f x \right )}}{c^{2} + 2 c d x + d^{2} x^{2}}\, dx + \int \frac{1}{c^{2} + 2 c d x + d^{2} x^{2}}\, dx\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(f*x+e))/(d*x+c)**2,x)

[Out]

a*(Integral(cos(e + f*x)/(c**2 + 2*c*d*x + d**2*x**2), x) + Integral(1/(c**2 + 2*c*d*x + d**2*x**2), x))

________________________________________________________________________________________

Giac [C]  time = 1.27412, size = 4419, normalized size = 49.65 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(f*x+e))/(d*x+c)^2,x, algorithm="giac")

[Out]

-1/2*(d*f*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - d*f*x*imag_par
t(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*d*f*x*sin_integral((d*f*x + c*f
)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 2*d*f*x*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^
2*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*d*f*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*
tan(1/2*e) + 2*d*f*x*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*d*f*x
*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + c*f*imag_part(cos_integral
(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - c*f*imag_part(cos_integral(-f*x - c*f/d))*tan(1/
2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*c*f*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*t
an(1/2*e)^2 - d*f*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + d*f*x*imag_part(cos
_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 - 2*d*f*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^
2*tan(1/2*c*f/d)^2 + 4*d*f*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) - 4
*d*f*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) + 8*d*f*x*sin_integral((
d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) - 2*c*f*real_part(cos_integral(f*x + c*f/d))*tan(1/2*
f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*c*f*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)
^2*tan(1/2*e) - d*f*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 + d*f*x*imag_part(cos_i
ntegral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 - 2*d*f*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(
1/2*e)^2 + 2*c*f*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*c*f*real_
part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 + d*f*x*imag_part(cos_integral(f*x
 + c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - d*f*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2*tan(1/
2*e)^2 + 2*d*f*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 2*d*f*x*real_part(cos_integral(
f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d) - 2*d*f*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan
(1/2*c*f/d) - c*f*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + c*f*imag_part(cos_int
egral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 - 2*c*f*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(
1/2*c*f/d)^2 + 2*d*f*x*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*e) + 2*d*f*x*real_part(cos_
integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e) + 4*c*f*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*
tan(1/2*c*f/d)*tan(1/2*e) - 4*c*f*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*
e) + 8*c*f*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*c*f/d)*tan(1/2*e) - 2*d*f*x*real_part(cos_inte
gral(f*x + c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*d*f*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^
2*tan(1/2*e) - c*f*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 + c*f*imag_part(cos_integr
al(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e)^2 - 2*c*f*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2*tan(1/2*e)^
2 + 2*d*f*x*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)*tan(1/2*e)^2 + 2*d*f*x*real_part(cos_integral(
-f*x - c*f/d))*tan(1/2*c*f/d)*tan(1/2*e)^2 + c*f*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)^2*tan(1/2
*e)^2 - c*f*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*c*f*sin_integral((d*f*x +
c*f)/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*d*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + d*f*x*imag_part(cos
_integral(f*x + c*f/d))*tan(1/2*f*x)^2 - d*f*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2 + 2*d*f*x*
sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2 - 2*c*f*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*tan(1
/2*c*f/d) - 2*c*f*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*c*f/d) - d*f*x*imag_part(cos_in
tegral(f*x + c*f/d))*tan(1/2*c*f/d)^2 + d*f*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2 - 2*d*f*x
*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2 + 2*c*f*real_part(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2*ta
n(1/2*e) + 2*c*f*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2*tan(1/2*e) + 4*d*f*x*imag_part(cos_integ
ral(f*x + c*f/d))*tan(1/2*c*f/d)*tan(1/2*e) - 4*d*f*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)*tan
(1/2*e) + 8*d*f*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)*tan(1/2*e) - 2*c*f*real_part(cos_integral(f*x +
 c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e) - 2*c*f*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)
 - d*f*x*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*e)^2 + d*f*x*imag_part(cos_integral(-f*x - c*f/d))*tan(1
/2*e)^2 - 2*d*f*x*sin_integral((d*f*x + c*f)/d)*tan(1/2*e)^2 + 2*c*f*real_part(cos_integral(f*x + c*f/d))*tan(
1/2*c*f/d)*tan(1/2*e)^2 + 2*c*f*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)*tan(1/2*e)^2 + c*f*imag_p
art(cos_integral(f*x + c*f/d))*tan(1/2*f*x)^2 - c*f*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*f*x)^2 + 2*c
*f*sin_integral((d*f*x + c*f)/d)*tan(1/2*f*x)^2 - 2*d*f*x*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)
- 2*d*f*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d) - c*f*imag_part(cos_integral(f*x + c*f/d))*tan(
1/2*c*f/d)^2 + c*f*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2 - 2*c*f*sin_integral((d*f*x + c*f)/d
)*tan(1/2*c*f/d)^2 - 2*d*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + 2*d*f*x*real_part(cos_integral(f*x + c*f/d))*tan(1/
2*e) + 2*d*f*x*real_part(cos_integral(-f*x - c*f/d))*tan(1/2*e) + 4*c*f*imag_part(cos_integral(f*x + c*f/d))*t
an(1/2*c*f/d)*tan(1/2*e) - 4*c*f*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)*tan(1/2*e) + 8*c*f*sin_i
ntegral((d*f*x + c*f)/d)*tan(1/2*c*f/d)*tan(1/2*e) - 8*d*tan(1/2*f*x)*tan(1/2*c*f/d)^2*tan(1/2*e) - c*f*imag_p
art(cos_integral(f*x + c*f/d))*tan(1/2*e)^2 + c*f*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*e)^2 - 2*c*f*s
in_integral((d*f*x + c*f)/d)*tan(1/2*e)^2 + 2*d*tan(1/2*f*x)^2*tan(1/2*e)^2 - 2*d*tan(1/2*c*f/d)^2*tan(1/2*e)^
2 + d*f*x*imag_part(cos_integral(f*x + c*f/d)) - d*f*x*imag_part(cos_integral(-f*x - c*f/d)) + 2*d*f*x*sin_int
egral((d*f*x + c*f)/d) - 2*c*f*real_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d) - 2*c*f*real_part(cos_integ
ral(-f*x - c*f/d))*tan(1/2*c*f/d) + 2*c*f*real_part(cos_integral(f*x + c*f/d))*tan(1/2*e) + 2*c*f*real_part(co
s_integral(-f*x - c*f/d))*tan(1/2*e) + c*f*imag_part(cos_integral(f*x + c*f/d)) - c*f*imag_part(cos_integral(-
f*x - c*f/d)) + 2*c*f*sin_integral((d*f*x + c*f)/d) - 2*d*tan(1/2*f*x)^2 + 2*d*tan(1/2*c*f/d)^2 - 8*d*tan(1/2*
f*x)*tan(1/2*e) - 2*d*tan(1/2*e)^2 + 2*d)*a/(d^3*x*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + c*d^2*tan(1/
2*f*x)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + d^3*x*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + d^3*x*tan(1/2*f*x)^2*tan(1/2*
e)^2 + d^3*x*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + c*d^2*tan(1/2*f*x)^2*tan(1/2*c*f/d)^2 + c*d^2*tan(1/2*f*x)^2*tan(
1/2*e)^2 + c*d^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + d^3*x*tan(1/2*f*x)^2 + d^3*x*tan(1/2*c*f/d)^2 + d^3*x*tan(1/2
*e)^2 + c*d^2*tan(1/2*f*x)^2 + c*d^2*tan(1/2*c*f/d)^2 + c*d^2*tan(1/2*e)^2 + d^3*x + c*d^2) - a/((d*x + c)*d)